﻿// Open Source: MIT License (http://www.opensource.org/licenses/mit-license.php)
// Project: YoProgramo.NET (http://code.google.com/p/yoprogramo/)
// Autor: Fabian Figueredo (info@fabianfigueredo.com.ar)
// Blog: blog.yoprogramo.net

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Validator;
using YoProgramo.Domain.Core.Interfaces;

namespace YoProgramo.Domain.Core.Entities
{
    public class Category : EntityBase<long>, ICategory, IHasAssignedId<long> {
        #region ICategory Members

        private string _name;

        [NotNullNotEmpty]
        public virtual string Name {
            get {
                return _name;
            }
            set {
                _name = value;
            }
        }

        private string _slug;
        [NotNullNotEmpty]
        public string Slug {
            get {
                return _slug;
            }
            set {
                _slug = value;
            }
        }

        #endregion

        #region IHasAssignedId<long> Members

        public virtual void SetAssignedIdTo(long assignedId) {
            throw new NotImplementedException();
        }

        #endregion

        public override int GetHashCode()
        {
            throw new NotImplementedException();
        }

        public long Id {
            get { return base.Id; }
            set { base.Id = value; }
        }

    }
}